import type { RouteRecordRaw } from 'vue-router';
import { t } from '@/hooks/useI18n';

const moduleName = 'infrastructure';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/system/user',
    redirect: 'system/user/index',
    meta: {
      title: '基础管理',
      hideInMenu: false,
    },
    children: [
      {
        path: 'settings',
        name: '用户管理',
        component: () => import('@/views/system/user/index.vue'),
        meta: { title: t('用户管理'), hideInMenu: false },
      },
    ],
  },
  {
    path: '/system/live',
    redirect: 'system/live/index',
    meta: {
      title: '直播测试',
      hideInMenu: false,
    },
    children: [
      {
        path: 'live',
        name: '直播测试',
        component: () => import('@/views/system/live/index.vue'),
        meta: { title: t('直播测试'), hideInMenu: false },
      },
    ],
  },
];

export default routes;
